
package com.app.bimo.module_bookrack.mvp.model.model;


import com.app.bimo.commonbusiness.BuildConfig;
import com.app.bimo.commonbusiness.bean.BaseResult;
import com.app.bimo.commonbusiness.network.RetrofitServiceManager;
import com.app.bimo.module_bookrack.mvp.constract.Bookrack_FindContract;
import com.app.bimo.module_bookrack.mvp.model.api.service.BookrackService;
import com.app.bimo.module_bookrack.mvp.model.entiy.FindData;
import com.app.bimo.module_bookrack.mvp.model.entiy.OtherResult;

import java.util.List;

import io.reactivex.Observable;


public class Bookrack_FindModel implements Bookrack_FindContract.Model {
    /**
     * 发现列表
     *
     * @return
     */
    @Override
    public Observable<BaseResult<List<FindData>>> getFind(int channel, int page) {
        return RetrofitServiceManager.getInstance().createRetrofit(BuildConfig.APPLICATION_ID, BookrackService.class).getFind(channel, page);
    }
    @Override
    public Observable<BaseResult<OtherResult>> shareReward(int type, String shareTime, String sign) {
        return RetrofitServiceManager.getInstance().createRetrofit(BuildConfig.APPLICATION_ID, BookrackService.class).shareReward(type, shareTime, sign);

    }


    @Override
    public void onDestroy() {

    }


}
